/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.mobiubiq.directory.client.ws;

import org.kalmeo.kuix.core.Kuix;

/**
 *
 * @author Marnix Renne
 */
public class Context {
    private int screenWidth;
    private int screenHeight;
    
    public Context() {
        screenWidth = Kuix.getCanvas().getWidth();
        screenHeight = Kuix.getCanvas().getHeight();
    }
    
    public int getScreenWidth() {
        return screenWidth;
    }
    
    public int getScreenHeight() {
        return screenHeight;
    }

    public String toUrl() {
        return "&context=[screenWidth%2d" + screenWidth + ",screenHeigh%3d=" + screenHeight + "]";
    }
}
